import request from '@/utils/request'

// 查询权数管理列表
export function listWeightManage(query) {
  return request({
    url: '/sales/weightManage/list',
    method: 'get',
    params: query
  })
}

// 查询权数管理详细
export function getWeightManage(id) {
  return request({
    url: '/sales/weightManage/' + id,
    method: 'get'
  })
}

// 新增权数管理
export function addWeightManage(data) {
  return request({
    url: '/sales/weightManage',
    method: 'post',
    data: data
  })
}

// 修改权数管理
export function updateWeightManage(data) {
  return request({
    url: '/sales/weightManage',
    method: 'put',
    data: data
  })
}

// 删除权数管理
export function delWeightManage(id) {
  return request({
    url: '/sales/weightManage/' + id,
    method: 'delete'
  })
}
